<?php


class Index extends Controller{

	function __construct() {
		parent::__construct();
		$this->view->_index = 'index';
		$this->loadModel('Places');
		$name = 'Places_model';
		$this->_modelplace = new $name;

		$this->view->all_place = $this->get_all_place();
	}

	function index() {
		$this->view->render('Page/index');
	}
	function details(){
		$this->view->render('Page/index');
	}
	
	function singup (){
		$this->loadModel('Signup');
		$name = 'Signup_model';
		$this->_modelSignup = new $name;
		$this->_modelSignup->xhrInsert();
	}
	function login(){

		$this->loadModel('Login');
		$name = 'Login_model';
		$this->_modelLogin = new $name;
		$this->_modelLogin->login();
	}

	
	public function get_all_place(){
		
		return $this->_modelplace->get_all_place();
	}

	
}
?>